package com.ytf.test.fifth;

/**
 * @author: YTF
 * @date: 2024/9/18 16:35
 * @version: 1.0
 * @description: 没有默认构造器
 */
public class NoSynthesis {
    public static void main(String[] args) {
        //! Bird2 bird2 = new Bird2(); // No default
        Bird2 bird2i = new Bird2(1);
        Bird2 bird2d = new Bird2(1.0);
        /**
         * 手动创建构造器后，不会自动创建默认构造器
         */
    }
}
class Bird2{
    public Bird2(int i) {
    }
    public Bird2(double d) {
    }
}
